<?php

namespace bee;

/**
 *
 * @author dzelenika
 *
 */
class label extends widget
{
  /**
   * @todo removed reference&
   * @param unknown_type $name
   * @param unknown_type $bindValue
   */
  function __construct($name, $bindValue = "")//function __construct($name, &$bindValue = "")
  { parent::__construct($name);
    $this->bindValue($bindValue);
    $this->widgetType = WIDGET_LABEL;
  }

/**
 *
 * @param array $evt
 */
  public function onDraw($evt)
  { $this->fillDSDoc();
  }

  /**
   *
   * @param sting $fillVar
   */
  public function fillDSDoc($fillVar = "")
  {
    $__DSDoc = XMLDataHub::getInstance();
    if($fillVar)
    { $this->__DSDoc->setVariable($fillVar, $this->value);
    }
    $this->__DSDoc->setObject("/form/widgets/" . $this->name, $this);
    //print_r($this);
  }
}
